-
-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix -with-sources
not fetching differently named source packages
#1404
Fix -with-sources
not fetching differently named source packages
#1404
Conversation
It was already a lot of options for one method and I am going to add another one in the next commit.
Such as e.g. downloading 'glibc' when the sources for 'libc6' are requested.
For the test
|
@neolynx this PR is actually from me. I was told to contribute this with an |
the test is failing due to missing files in the S3 mirror for system tests. I will add those.. |
additional files added, test are green now :) codecov/patch — 90.59% of diff hit (target 74.81%) nice job 👍 |
The fix of the -with-filter flag causes the following previously missing source files to be downloaded, so I updated the test file. ``` rkward_0.7.5-1~bullseyecran.0.debian.tar.xz rkward_0.7.5-1~bullseyecran.0.dsc rkward_0.7.5.orig.tar.gz rpy2_3.5.12-1~bullseyecran.0.debian.tar.xz rpy2_3.5.12-1~bullseyecran.0.dsc rpy2_3.5.12.orig.tar.gz ```
32e458c
to
8c3fe8d
Compare
Thank you 😊 |
@schoenherrg could you provide me access to the PR ? I wanted to push an update on the system test, checking for the additional source pkgs with different name explicitely... |
Fixes #1403
Description of the Change
This fixes a bug where aptly doesn't behave as specified in the documentation.
The core of the change is to just add an option to
Filter
to indicate that source packages need to be included and, if that option is set, add the missing packages to the result.Note that I also refactored
Filter
to take a struct of options, because I didn't want to add yet another argument to the already very long argument list.A call to
Filter
now looks like this (you can leave out arguments that have the default value):This change is independent of the bugfix though and I can revert it if you don't like it.
Checklist
AUTHORS